import InterfaceDefinitionComp from "containers/financial-account/interface-definition/interface-definition";
import InterfaceDefinitionDetailComp from "containers/financial-account/interface-definition/interface-definition-detail";
import TypeDefinitionDetailComp from "containers/financial-account/interface-definition/type-definition-detail";
import DataDetailComp from "containers/financial-account/interface-definition/data-detail";
import SceneDetailComp from "containers/financial-account/interface-definition/scene-detail";
import ElementDefinitionComp from "containers/financial-account/interface-definition/element-definition";
import MappingSettingComp from "containers/financial-account/interface-definition/mapping-setting";
import SettingMateComp from "containers/financial-account/interface-definition/setting-mate";
import ObjectMappingComp from "containers/financial-account/interface-definition/object-mapping";
import DebitCreditDetailComp from "containers/financial-account/interface-definition/debit-credit-detail";
import DocTemplateComp from "containers/financial-account/doc-template/doc-template";
import CredentialDefinitionComp from "containers/financial-account/credential-definition/credential-definition";
import CredentialDetailComp from "containers/financial-account/credential-definition/credential-detail";
// 财务核算设置
const financialAccount = {
  key: 'financial-account',
  icon: 'database',
  admin: true,
  tenant: true,
  company: false,
  subMenu: [
    {
      //业务接口定义
      key: 'interface-definition',
      url: '/main/financial-account/interface-definition',
      components: InterfaceDefinitionComp,
      parent: 'financial-account',
      children: {
        interfaceDefinitionDetail: {
          key: 'interface-definition-detail',
          url: '/main/financial-account/interface-definition/interface-definition-detail/:tab',
          components: InterfaceDefinitionDetailComp,
          parent: 'interface-definition'
        },
        typeDefinitionDetail: {
          key: 'type-definition-detail',
          url: '/main/financial-account/interface-definition/interface-definition-detail/:tab/type-definition-detail',
          components: TypeDefinitionDetailComp,
          parent: 'interface-definition-detail'
        },
        dataDetail: {
          key: 'data-detail',
          url: '/main/financial-account/interface-definition/interface-definition-detail/:tab/type-definition-detail/data-detail',
          components: DataDetailComp,
          parent: 'type-definition-detail'
        },
        sceneDetail: {
          key: 'scene-detail',
          url: '/main/financial-account/interface-definition/interface-definition-detail/:tab/scene-detail',
          components: SceneDetailComp,
          parent: 'interface-definition'
        },
        elementDefinition: {
          key: 'element-definition',
          url: '/main/financial-account/interface-definition/interface-definition-detail/:tab/element-definition',
          components: ElementDefinitionComp,
          parent: 'interface-definition'
        },
        mappingSetting: {
          key: 'mapping-setting',
          url: '/main/financial-account/interface-definition/interface-definition-detail/:tab/element-definition/mapping-setting',
          components: MappingSettingComp,
          parent: 'element-definition'
        },
        settingMate: {
          key: 'setting-mate',
          url: '/main/financial-account/interface-definition/interface-definition-detail/:tab/setting-mate',
          components: SettingMateComp,
          parent: 'interface-definition'
        },
        objectMapping: {
          key: 'object-mapping',
          url: '/main/financial-account/interface-definition/interface-definition-detail/:tab/setting-mate/object-mapping',
          components: ObjectMappingComp,
          parent: 'setting-mate'
        },
        debitCreditDetail: {
          key: 'debit-credit-detail',
          url: '/main/financial-account/interface-definition/interface-definition-detail/:tab/debit-credit-detail',
          components: DebitCreditDetailComp,
          parent: 'interface-definition'
        },
      }
    },
    {
      //凭证模版定义
      key: 'doc-template',
      url: '/main/financial-account/doc-template',
      components: DocTemplateComp,
      parent: 'financial-account'
    },
    {
      //凭证定义
      key: 'credential-definition',
      url: '/main/financial-account/credential-definition',
      components: CredentialDefinitionComp,
      parent: 'financial-account',
      children: {
        credentialDetail: {
          key: 'credential-detail',
          url: '/main/financial-account/credential-definition/credential-detail',
          components: CredentialDetailComp,
          parent: 'credential-definition'
        }
      }
    }
  ],
};

export default financialAccount;
